home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7774 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ccshst05.cs.uoguelph.ca!ccshst01!thay
  2. From: thay@uoguelph.ca (Toby K Hay)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: sin function in Turbo C 3
  5. Date: 28 Feb 1996 21:05:28 GMT
  6. Organization: University of Guelph
  7. Message-ID: <4h2g2o$ndc@ccshst05.cs.uoguelph.ca>
  8. References: <4h2al3$rim@mulgave.octacon.co.uk>
  9. NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Nik Palmer (Nik.Palmer@onyx.octacon.co.uk) wrote:
  13. : when findng the angle in trigonometry on my calc I use the sin-1
  14. : function to give me the answer in degrees  a la
  15. : sin(theta)=opp/hyp
  16. : but Turbo C only has the sin function how do I get the answer in
  17. : degrees(or radians)
  18.  
  19. When you write sin-1 do you mean the inverse operation of sin()?  If so, 
  20. it's called arcsine and found in math.h as asin().  I believe it's an 
  21. ANSI C function - it's definitely in TurboC.
  22.  
  23. : when dividing doubles using the / function I would like to have the
  24. : answer in the form 10/3 = 3.3333etc  like I know I lose the fraction,
  25. : I can get around this using the other functions which provide me with
  26. : the remiander to redivide, or multiply the number to be divided by
  27. : 1000 then do some bits to get the result.
  28.  
  29. I'm baffled.  Could you restate the question?
  30. Toby Hay   thay@uoguelph.ca
  31.